.class Lcom/tendcloud/tenddata/ew;
.super Ljava/lang/Object;


# static fields
.field static final a:Ljava/lang/String; = "TDpref.profile.key"

.field static final b:Ljava/lang/String; = "TDpref.session.key"

.field static final c:Ljava/lang/String; = "TDpref.lastactivity.key"

.field static final d:Ljava/lang/String; = "TDpref.start.key"

.field static final e:Ljava/lang/String; = "TDpref.init.key"

.field static final f:Ljava/lang/String; = "TDpref.actstart.key"

.field static final g:Ljava/lang/String; = "TDpref.end.key"

.field static final h:Ljava/lang/String; = "TDpref.ip"

.field static final i:Ljava/lang/String; = "TD_CHANNEL_ID"

.field static final j:Ljava/lang/String; = "TDpref_longtime"

.field static final k:Ljava/lang/String; = "TDpref_shorttime"

.field static final l:Ljava/lang/String; = "TDaes_key"

.field static final m:Ljava/lang/String; = "TDisAppQuiting"

.field static final n:Ljava/lang/String; = "TDpref.last.sdk.check"

.field static final o:Ljava/lang/String; = "TDadditionalVersionName"

.field static final p:Ljava/lang/String; = "TDadditionalVersionCode"

.field static final q:Ljava/lang/String; = "TDcs"

.field static final r:Ljava/lang/String; = "TDpref.apps_send_time.key"

.field static final s:Ljava/lang/String; = "TDtime_gap"


# direct methods
.method constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static a()Ljava/lang/String;
    .locals 4

    const/4 v0, 0x0

    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v1, :cond_0

    :goto_0
    return-object v0

    :cond_0
    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v2, "TDpref_longtime"

    const-string v3, "TDaes_key"

    invoke-static {v1, v2, v3, v0}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static a(J)V
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDpref.start.key"

    invoke-static {v0, v1, v2, p0, p1}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method static a(Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDaes_key"

    invoke-static {v0, v1, v2, p0}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method static a(Z)V
    .locals 5

    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v3, "TDpref_longtime"

    const-string v4, "TDpref.profile.key"

    if-eqz p0, :cond_0

    const-wide/16 v0, 0x1

    :goto_0
    invoke-static {v2, v3, v4, v0, v1}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    return-void

    :cond_0
    const-wide/16 v0, 0x0

    goto :goto_0
.end method

.method static b()Ljava/lang/String;
    .locals 4

    const/4 v0, 0x0

    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v1, :cond_0

    :goto_0
    return-object v0

    :cond_0
    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v2, "TDpref_longtime"

    const-string v3, "TDpref.session.key"

    invoke-static {v1, v2, v3, v0}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static b(J)V
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDpref.init.key"

    invoke-static {v0, v1, v2, p0, p1}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method static b(Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDpref.session.key"

    invoke-static {v0, v1, v2, p0}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method static c()V
    .locals 3

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TD_CHANNEL_ID"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "location_called"

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    goto :goto_0
.end method

.method static c(J)V
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_shorttime"

    const-string v2, "TDpref.actstart.key"

    invoke-static {v0, v1, v2, p0, p1}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method static c(Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_shorttime"

    const-string v2, "TDpref.lastactivity.key"

    invoke-static {v0, v1, v2, p0}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method static d(J)V
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_shorttime"

    const-string v2, "TDpref.end.key"

    invoke-static {v0, v1, v2, p0, p1}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method static d(Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDisAppQuiting"

    invoke-static {v0, v1, v2, p0}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method static d()Z
    .locals 3

    const/4 v0, 0x0

    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v1, :cond_0

    :goto_0
    return v0

    :cond_0
    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v2, "TD_CHANNEL_ID"

    invoke-virtual {v1, v2, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "location_called"

    invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    goto :goto_0
.end method

.method static e()Ljava/lang/String;
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_shorttime"

    const-string v2, "TDpref.lastactivity.key"

    const-string v3, ""

    invoke-static {v0, v1, v2, v3}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static e(J)V
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDadditionalVersionCode"

    invoke-static {v0, v1, v2, p0, p1}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method static e(Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDadditionalVersionName"

    invoke-static {v0, v1, v2, p0}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method static f()J
    .locals 5

    const-wide/16 v0, 0x0

    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v2, :cond_0

    :goto_0
    return-wide v0

    :cond_0
    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v3, "TDpref_longtime"

    const-string v4, "TDpref.start.key"

    invoke-static {v2, v3, v4, v0, v1}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v0

    goto :goto_0
.end method

.method static f(J)V
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDtime_gap"

    invoke-static {v0, v1, v2, p0, p1}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)V

    goto :goto_0
.end method

.method static f(Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDcs"

    invoke-static {v0, v1, v2, p0}, Lcom/tendcloud/tenddata/bu;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method static g()J
    .locals 5

    const-wide/16 v0, 0x0

    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v2, :cond_0

    :goto_0
    return-wide v0

    :cond_0
    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v3, "TDpref_longtime"

    const-string v4, "TDpref.init.key"

    invoke-static {v2, v3, v4, v0, v1}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v0

    goto :goto_0
.end method

.method static h()J
    .locals 5

    const-wide/16 v0, 0x0

    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v2, :cond_0

    :goto_0
    return-wide v0

    :cond_0
    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v3, "TDpref_shorttime"

    const-string v4, "TDpref.end.key"

    invoke-static {v2, v3, v4, v0, v1}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v0

    goto :goto_0
.end method

.method static i()Ljava/lang/String;
    .locals 4

    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v0, :cond_0

    const-string v0, "-1"

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v1, "TDpref_longtime"

    const-string v2, "TDisAppQuiting"

    const-string v3, "-1"

    invoke-static {v0, v1, v2, v3}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static j()Ljava/lang/String;
    .locals 4

    const/4 v0, 0x0

    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v1, :cond_0

    :goto_0
    return-object v0

    :cond_0
    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v2, "TDpref_longtime"

    const-string v3, "TDadditionalVersionName"

    invoke-static {v1, v2, v3, v0}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static k()J
    .locals 5

    const-wide/16 v0, -0x1

    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v2, :cond_0

    :goto_0
    return-wide v0

    :cond_0
    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v3, "TDpref_longtime"

    const-string v4, "TDadditionalVersionCode"

    invoke-static {v2, v3, v4, v0, v1}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v0

    goto :goto_0
.end method

.method static l()Ljava/lang/String;
    .locals 4

    const/4 v0, 0x0

    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v1, :cond_0

    :goto_0
    return-object v0

    :cond_0
    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v2, "TDpref_longtime"

    const-string v3, "TDcs"

    invoke-static {v1, v2, v3, v0}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static m()J
    .locals 5

    const-wide/16 v0, 0x0

    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    if-nez v2, :cond_0

    :goto_0
    return-wide v0

    :cond_0
    sget-object v2, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    const-string v3, "TDpref_longtime"

    const-string v4, "TDtime_gap"

    invoke-static {v2, v3, v4, v0, v1}, Lcom/tendcloud/tenddata/bu;->b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v0

    goto :goto_0
.end method

.method static n()I
    .locals 4

    :try_start_0
    invoke-static {}, Lcom/tendcloud/tenddata/ew;->k()J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/tendcloud/tenddata/ew;->k()J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    :goto_0
    return v0

    :cond_0
    invoke-static {}, Lcom/tendcloud/tenddata/bj;->a()Lcom/tendcloud/tenddata/bj;

    move-result-object v0

    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/bj;->b(Landroid/content/Context;)I
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    move-result v0

    goto :goto_0

    :catch_0
    move-exception v0

    const/4 v0, -0x1

    goto :goto_0
.end method

.method static o()Ljava/lang/String;
    .locals 2

    :try_start_0
    invoke-static {}, Lcom/tendcloud/tenddata/ew;->j()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/tendcloud/tenddata/ew;->j()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    invoke-static {}, Lcom/tendcloud/tenddata/bj;->a()Lcom/tendcloud/tenddata/bj;

    move-result-object v0

    sget-object v1, Lcom/tendcloud/tenddata/ab;->mContext:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/tendcloud/tenddata/bj;->c(Landroid/content/Context;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v0, "unknown"

    goto :goto_0
.end method
